home *** CD-ROM | disk | FTP | other *** search
- program wave;
-
- uses
- Forms,
- sysutils,
- dialogs,
- windows,
- wave_main in 'wave_main.pas' {mainscreen};
-
- {$R *.RES}
- {$D SCRNSAVE : Wave}
-
- var hMutex : THandle;
-
- begin
- hMutex := CreateMutex (nil, false, 'Screensaver_%G^H&J*K(:');
- if (hMutex <> 0) and (GetLastError=ERROR_ALREADY_EXISTS) then
- begin
- CloseHandle (hMutex);
- halt;
- end;
-
- if (Paramcount > 0) AND ((UpperCase(ParamStr(1)) = '/S') OR (UpperCase(ParamStr(1)) = '-S')) then
- begin
- Application.Initialize;
- Application.Title := 'Wave demo screensaver - ⌐ Remco de Korte 2000';
- Application.CreateForm(Tmainscreen, mainscreen);
- Application.Run;
- end
-
- else if (Paramcount > 0) AND ((UpperCase(ParamStr(1)) = '/C') OR (UpperCase(ParamStr(1)) = '-C')) then
- MessageDlg (' No configuration ', mtInformation, [mbCancel], 0);
- end.
-